const HtmlCacheFix = require('../bundler')

module.exports = function HtmlCacheFixVitePlugin(options) {
  return {
    name: 'vite:html-cache-fix',
    apply: 'build',
    enforce: 'post',
    writeBundle() {
      HtmlCacheFix(options)
    }
  }
}
